]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: Do not wake up screen after adding hidden source
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 26 Feb 2015 22:31:46 +0000 (23:31 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 26 Feb 2015 22:39:01 +0000 (23:39 +0100)
The screen should be woken up when a new notification is shown on
the lock screen, but not when a notification arrives while disabled.
Add a missing condition to fix.

https://bugzilla.gnome.org/show_bug.cgi?id=744114

js/ui/screenShield.js

index 76efd037ccad98dfb50047772d85eb8757c7c612..1cfc211774b6ce5cbafbdb0f09d51d9a4fcce4f2 100644 (file)
@@ -271,7 +271,8 @@ const NotificationsBox = new Lang.Class({
                              });
 
             this._updateVisibility();
-            this.emit('wake-up-screen');
+            if (obj.sourceBox.visible)
+                this.emit('wake-up-screen');
         }
     },